Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  exam: {
    title: "Exam"
  }
}

Success response body

{
  "id": 1,
  "title": "Exam"
}

Params

Param name Description
course_id
required

Validations:

  • Must be a Integer

exam
required

Validations:

  • Must be a Hash

exam[title]
required

Validations:

  • Must be a String